//
//   PrefixHeader .h
//  CRSCMOA
//
//  Created by 王文晓 on 16/8/8.
//  Copyright © 2016年 王文晓. All rights reserved.
//

#ifndef _PrefixHeader__h
#define _PrefixHeader__h
#define kImageName(imageName) [UIImage imageNamed:imageName]
#define kImage_placeholder   [UIImage imageNamed:@"placeholder"]
#define kRect(x,y,w,h)        CGRectMake(x, y, w, h)
#define kSize(w,h)            CGSizeMake(w,h)
#define kFont(font)           [UIFont systemFontOfSize:font]
#define kColor(color)          [UIColor color]
#define kScreenWidth [UIScreen mainScreen].bounds.size.width
#define kScreenHeight [UIScreen mainScreen].bounds.size.height

#import "UIView+Frame.h"
#import "UIImage+Image.h"
#import "JNTWorkbenchTableViewCell.h"
#import "MyView.h"


#define iOS7_Origin_Y ([[[UIDevice  currentDevice] systemVersion] floatValue]<7.0?0:20)
#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)

#define DEVICE_WIDTH  [UIScreen mainScreen].bounds.size.width
#define DEVICE_HEIGHT [UIScreen mainScreen].bounds.size.height


#define COLOR_RGB(r,g,b) [UIColor colorWithRed:r/255.0  green:g/255.0  blue:b/255.0 alpha:1]

#define ColorRgb(r,g,b) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1]
#define CZKeyWindow [UIApplication sharedApplication].keyWindow

// ...表示宏定义的可变参数
// __VA_ARGS__:表示函数里面的可变参数
#ifdef DEBUG // 调试

#define JNTLog(...) NSLog(__VA_ARGS__)

#else // 发布

#define JNTLog(...)

#endif

/*        cell            */
#define CZStatusCellMargin 10
#define CZNameFont [UIFont systemFontOfSize:13]
#define CZTimeFont [UIFont systemFontOfSize:12]
#define CZSourceFont CZTimeFont
#define CZTextFont [UIFont systemFontOfSize:15]
#define CZScreenW [UIScreen mainScreen].bounds.size.width

#endif /* _PrefixHeader__h */
